﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DTO
{
    public class Product
    {
        int _Id;

        public int Id
        {
            get { return _Id; }
            set { _Id = value; }
        }
        string _Name;

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        float _Quantity;

        public float Quantity
        {
            get { return _Quantity; }
            set { _Quantity = value; }
        }
        string _Unit;

        public string Unit
        {
            get { return _Unit; }
            set { _Unit = value; }
        }

        float _Price;

        public float Price
        {
            get { return _Price; }
            set { _Price = value; }
        }

        float _Money;

        public float Money
        {
            get { return _Money; }
            set { _Money = value; }
        }

        public Product(int Id, string Name, float Quantity, string Unit,float Price)
        {
            this.Id = Id;
            this.Name = Name;
            this.Quantity = Quantity;
            this.Unit = Unit;
            this.Price = Price;
            this.Money = Price*Quantity;
        }
    }
}
